<?php
date_default_timezone_set("PRC");
$start_time=time();
$end_time=strtotime('2019-4-4 00:00:00');
$time=$end_time-$start_time;
$day=floor($time/(24*60*60));
$hour=floor($time%(24*60*60)/(60*60));
$min=floor($time%(24*60*60)%(60*60)/60);
$sec=floor($time%(24*60*60)%(60*60)%60);
echo json_encode(['day'=>$day,'hour'=>$hour,'min'=>$min,'sec'=>$sec]);
?>